package com.contextor.magiccards.web.handlers.battle;

import com.contextor.magiccards.model.errors.MagicCardsException;
import com.contextor.magiccards.web.to.battle.BattleListTO;
import com.contextor.magiccards.web.to.battle.BattleTO;
import com.contextor.magiccards.web.to.battle.CombatTO;
import com.contextor.magiccards.web.to.user.PersonageTO;

/**
 * User: sergey
 * Date: Mar 22, 2011 11:57:34 AM
 */
public interface BattleToHandler {
    BattleTO create(String uid) throws MagicCardsException;

    public BattleListTO listBattles(String uid) throws MagicCardsException;

    public CombatTO joinBattle(String uid, PersonageTO personageTO, BattleTO battleTO) throws MagicCardsException;
}
